package com.fjec.devops.mapper;

import com.fjec.devops.entity.StatMarketUserNum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 015.统计-市场板块注册用户数表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2020-09-18
 */
public interface StatMarketUserNumMapper extends BaseMapper<StatMarketUserNum> {

    /**
     * 统计各市场用户概况
     *
     * @param startTime
     * @param endTime
     * @return
     */
    List<StatMarketUserNum> statShopUserNumTotal(@Param("startTime") LocalDate startTime,
                                                 @Param("endTime") LocalDate endTime,
                                                 @Param("markCode") Integer markCode);

    /**
     * 统计各个市场商户数量
     *
     * @param startTime
     * @param endTim
     * @return
     */
    List<StatMarketUserNum> statShopUserNum(@Param("typeList") List<Integer> typeList,
                                            @Param("startTime") LocalDate startTime,
                                            @Param("endTime") LocalDate endTim,
                                            @Param("markCode") Integer markCode);

    /**
     * 统计各市场总人数
     *
     * @return
     */
    List<StatMarketUserNum> statMarketUserTotalNum();
}
